
import { method } from "lodash";
import { mapGetters } from "vuex";
export default {
    computed:{
        ...mapGetters(["role"]),  // 获取登录的用户信息  super admin user
    },
    methods:{
        judegPermission(arrowList){
            // arrowList  => 运行访问的角色列表
            // console.log(1111,arrowList,this.role);
            // if(arrowList.includes(this.role)){ // 当前用户 运行访问
            //     return  true
            // }else{
            //     return  false;
            // }
            return arrowList.includes(this.role);
        },
    }
}